
import {  postRequest } from '@/lib/axios';
import { USER,USERADD } from '@/config/api-constant/system'


// 获取用户

export const usersApi = (param) => {
    return postRequest(USER,param)
}

//添加用户

export const usersAddApi = (param) => {
    return postRequest(USERADD,param)
}
// 编辑
export const usersEditApi = (userid,param) => {
    return postRequest(`${USER}/${userid}`,param)
}